package cn.stylefeng.guns.modular.item.mapper;

import cn.stylefeng.guns.modular.item.Entity.Item;
import cn.stylefeng.roses.core.datascope.DataScope;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LinuY
 * @since 2020-06-21
 */
@Repository
public interface ItemMapper extends BaseMapper<Item> {

    Page<Map<String, Object>> listItems(@Param("page") Page page,
                                   @Param("itemId") Integer itemId,
                                   @Param("itemName") String itemName,
                                   @Param("type") String type,
                                   @Param("number") Integer number);
}
